import json

import  requests

url = 'https://product.weather.com.cn/alarm/grepalarm_cn.php?_=1761794794111'
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36',
    'Referer':'https://www.weather.com.cn/'
}

res = requests.get(url,headers=headers)
# print(res.status_code)
# print(res.content.decode())
res = res.content.decode()[14:-1]
# print(res)
items = json.loads(res)
# print(items['data'])
for item in items['data']:
    print(item[0],item[1])
'https://product.weather.com.cn/alarm/grepalarm_cn.php?_=1761795961268'
'https://www.weather.com.cn/alarm/newalarmcontent.shtml?file=101060302-20251030104000-0401.html'
'https://www.weather.com.cn/alarm/alarm_list.shtml?file=101060302-20251030104000-0401.html'